/*
* Copyright (C) 2008-2009 J-P Nurmi jpnurmi@gmail.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* $Id: viewhandler.h 587 2009-05-19 20:19:17Z jpnurmi $
*/

#ifndef VIEWHANDLER_H
#define VIEWHANDLER_H

#include <QHash>
#include <QString>
#include <QStringList>

class MessageView;

#if 0
class ViewHandler
{
public:
    ViewHandler();

    void addView(MessageView* view);
    void removeView(MessageView* view);
    MessageView* takeView(const QString& receiver);
    void renameView(const QString& receiver, const QString& newReceiver);

    QStringList channels() const;
    QStringList receivers() const;
    bool contains(const QString& receiver) const;

    QList<MessageView*> views() const;
    MessageView* view(const QString& receiver) const;
    QList<MessageView*> findViews(const QStringList& receivers, const QStringList& participants = QStringList()) const;

private:
    struct ViewHandlerData
    {
        QHash<QString, MessageView*> views;
    } d;
};
#endif // 0

#endif // VIEWHANDLER_H
